using System.Diagnostics;
using System.Globalization;
using System.Numerics;
using Snake.Logger;
using Snake.Misc;
using UnityEngine;

public class TestBigInteger : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        var a = new BigDecimal(1);

        var sw = new Stopwatch();
        sw.Start();
        for (var i = 1; i <= 10000; i++)
        {
            a *= i;
        }

        sw.Stop();
        Log.Debug(sw.ElapsedMilliseconds);

        var b = new BigInteger(31);

        var c = a / b;
        var d = a % b;

        var str = a.ToString();

        var e = BigInteger.Parse("1e10", NumberStyles.Any);
        var f = a * 1.23f;
        var g = a / 12123.555512;
    }

    // Update is called once per frame
    void Update()
    {
    }
}